<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function f() {
            var a = document.getElementById('m').innerText;
            if (a==0){
                window.location.href = "https://www.baidu.com";
                return
            }
            document.getElementById('m').innerText = a-1;
        }
    </script>
</head>
<body onload="setInterval('f()',1000)">
    <font id="m">9</font>秒后跳转到<a href="https://www.baidu.com">百度</a>
</body>
</html>